package com.lagou.edu.common;

import lombok.Data;

/**
 * 返回信息封装
 */

public enum CodeMessage {
    SUCCESS("200","验证码校验成功"),
    NOT_GENERATED("CODE-0001","没有申请验证码"),
    EXPIRED("CODE-0002","验证码已过期，请重新生成"),
    INPUT_WRONG("CODE-0003","验证码输入错误")
    ;


    private String code;
    private String message;

    CodeMessage(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
